//
// Created by 吴锐 on 2022/2/26.
//

#include "iostream"

using namespace std;

class Base {
public:
    int a;

    Base(){
        a = 100;
    }

    void func(){
        cout << "Base的函数调用" << endl;
    }
};

class Son : public Base {
public:
    int a;

    Son(){
        a = 200;
    }

    void func(){
        cout << "Son的函数调用" << endl;
    }
};

void test01(){
    Son s;
    cout << s.a << endl;
    cout << s.Base::a << endl;
}

void test02(){
    Son s;
    s.func();
    s.Base::func();
}

int main(){
//    test01();
    test02();
    return 0;
}